import axios from '@/api/fetch';
//import * as types from './types';
import SERVER from '@/api/server';

//新增拒赔申诉
export const addRefusalToClaim = params => axios.post(`${SERVER.CLAIMFAC}/refusalToClaim/addRefusalToClaim`, params);

export const getRefusalToClaim = params => axios.get(`${SERVER.CLAIMFAC}/refusalToClaim/getRefusalToClaim`, {params});
export const getRefusalToClaimLog = params => axios.get(`${SERVER.CLAIMFAC}/refusalToClaim/getRefusalToClaimLog`, {params});
export const getRefusalToClaimPart = params => axios.get(`${SERVER.CLAIMDEALER}/refusalToClaim/getRefusalToClaimPart`, {params});
export const getClaimForm = params => axios.post(`${SERVER.CLAIMDEALER}/rPCmsClaim/getClaimForm`,  params);
export const examineRefusalToClaim = params => axios.post(`${SERVER.CLAIMFAC}/refusalToClaim/examineRefusalToClaim`, params);
export const getListForExport = params => axios.post(`${SERVER.CLAIMFAC}/refusalToClaim/getListForExport`, params, {
  responseType: 'blob'
});
